<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改书籍</title>
    <%--在线导入bootstrap--%>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .add{
            width: 200px;
            font-size: 20px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 ">
            <div class="page-header">
                <h1>
                    <small>修改书籍</small>
                </h1>
            </div>
        </div>
    </div>

    <form action="${pageContext.request.contextPath}/book/updateBook" method="post">
        <%--这里少了id,updateBook需要id,用隐藏域传递--%>
            <input type="hidden" value="${Qbooks.bookID}" name="bookID">
        <div class="form-group">
            <label for="bookName">BookName</label>
            <input type="text" class="form-control" value="${Qbooks.bookName}" name="bookName" required>
        </div>
        <div class="form-group">
            <label for="bookCount">bookCount</label>
            <input type="text" class="form-control" value="${Qbooks.bookCounts}" name="bookCounts" required>
        </div>
        <div class="form-group">
            <label for="detail">detail</label>
            <input type="text" class="form-control" value="${Qbooks.detail}" name="detail" required>
        </div>
        <div class="form-group col-md-4 col-md-offset-5">
            <input type="submit" class="btn btn-primary add" value="修改">
        </div>

    </form>

</div>
</body>
</html>
